#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : bird.zhang@ximalaya.com

import requests

url = "http://ops.test.ximalaya.com/lamia-admin/v1/room/create"

headers = {
    "Cookie": '_xmLog=xm_1480694402100_iw7z7sqccm5ej2; 1&amp_token=57201265&2052fc330d19604b650999f024f77a29c0b9; account=136****3520; login_from=qq; nickname=%E5%B0%8F%E5%AE%87; Hm_lvt_4a7d8ec50cfd6af753c4f8aee3425070=1496644912,1497418926,1498056504; 4&remember_me=y; 4&_token=57257&0e7d315a0ad840489009fe80a3b702587ec4; 1&remember_me=y; 1&_token=19982559&319996ac0f839040aa0a4bf02e97ebce2b1f; 4_l_flag=57257&0e7d315a0ad840489009fe80a3b702587ec4_2017-11-09 19:33:14; trackType=web; x_xmly_traffic=utm_source%3A%26utm_medium%3A%26utm_campaign%3A%26utm_content%3A%26utm_term%3A%26utm_from%3A; _ga=GA1.2.1864038980.1472787054; 1_l_flag=19982559&319996ac0f839040aa0a4bf02e97ebce2b1f_2017-11-10 17:05:55; ops-auth=DF51669FC70B9AD5D664; sync=a2Fma2E'
}

uid = 0

params = {'homePageWeight': 0, 'uid': uid}

print(params)
response = requests.post(url, params=params, headers=headers)
print(response.text)
